package com.ruoyi.fuw.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.fuw.mapper.FuwCollectionMapper;
import com.ruoyi.fuw.domain.FuwCollection;
import com.ruoyi.fuw.service.IFuwCollectionService;

/**
 * 收藏Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-10-09
 */
@Service
public class FuwCollectionServiceImpl implements IFuwCollectionService 
{
    @Autowired
    private FuwCollectionMapper fuwCollectionMapper;

    /**
     * 查询收藏
     * 
     * @param uId 收藏主键
     * @return 收藏
     */
    @Override
    public FuwCollection selectFuwCollectionByUId(Long uId)
    {
        return fuwCollectionMapper.selectFuwCollectionByUId(uId);
    }

    /**
     * 查询收藏列表
     * 
     * @param fuwCollection 收藏
     * @return 收藏
     */
    @Override
    public List<FuwCollection> selectFuwCollectionList(FuwCollection fuwCollection)
    {
        return fuwCollectionMapper.selectFuwCollectionList(fuwCollection);
    }

    /**
     * 新增收藏
     * 
     * @param fuwCollection 收藏
     * @return 结果
     */
    @Override
    public int insertFuwCollection(FuwCollection fuwCollection)
    {
        return fuwCollectionMapper.insertFuwCollection(fuwCollection);
    }

    /**
     * 修改收藏
     * 
     * @param fuwCollection 收藏
     * @return 结果
     */
    @Override
    public int updateFuwCollection(FuwCollection fuwCollection)
    {
        return fuwCollectionMapper.updateFuwCollection(fuwCollection);
    }

    /**
     * 批量删除收藏
     * 
     * @param uIds 需要删除的收藏主键
     * @return 结果
     */
    @Override
    public int deleteFuwCollectionByUIds(Long[] uIds)
    {
        return fuwCollectionMapper.deleteFuwCollectionByUIds(uIds);
    }

    /**
     * 删除收藏信息
     * 
     * @param uId 收藏主键
     * @return 结果
     */
    @Override
    public int deleteFuwCollectionByUId(Long uId)
    {
        return fuwCollectionMapper.deleteFuwCollectionByUId(uId);
    }
}
